package com.sairui.xiaoruilib.bean;

import android.support.annotation.NonNull;

import java.io.Serializable;

/**
 * Created by sunqiyong on 2018/5/23.
 */

public class CardOptionEntity implements Serializable,Comparable<CardOptionEntity> {
    private String optionItemId;
    private String optionItemName;
    private Integer optionSeq;
    private String cardId;

    public String getOptionItemId() {
        return optionItemId;
    }

    public void setOptionItemId(String optionItemId) {
        this.optionItemId = optionItemId;
    }

    public String getOptionItemName() {
        return optionItemName;
    }

    public void setOptionItemName(String optionItemName) {
        this.optionItemName = optionItemName;
    }

    public Integer getOptionSeq() {
        return optionSeq;
    }

    public void setOptionSeq(Integer optionSeq) {
        this.optionSeq = optionSeq;
    }

    public String getCardId() {
        return cardId;
    }

    public void setCardId(String cardId) {
        this.cardId = cardId;
    }

    @Override
    public int compareTo(@NonNull CardOptionEntity cardOptionEntity) {
        return this.getOptionSeq() - cardOptionEntity.getOptionSeq();//先按照年龄排序
    }
}
